package lib.bone.access.module.dict.dao;

import lib.bone.access.module.dict.entity.NepuPaperDict;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface NepuPaperDictDAO extends JpaRepository<NepuPaperDict,String> {
    /**
     * 根据ID删除
     */
    void deleteById(String id);

    /**
     * @author: kindear
     * @date : 2022-1-13
     * 根据类型和等级查询
     */
    Optional<NepuPaperDict> findByPaperTypeAndPaperLevel(String paperType,String paperLevel);


    List<NepuPaperDict> findByType(String type);
//    NepuPaperDict findByPaperType(String paperType);
//
//    NepuPaperDict findByPaperLevel(String paperLevel);
}
